//
// Created by deepin on 2020/11/12.
//

#ifndef C___STACK_H
#define C___STACK_H
typedef unsigned long Item;
class Stack {
   private:
      enum {Max = 10};
      Item  items[Max];
      int top;
   public:
      Stack();
      bool isempty() const;
      bool isfull() const;
      bool push(const Item & item);
      bool pop(Item & item);
};
#endif //C___STACK_H
